﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="EventLog.aspx.cs" Inherits="CURE.SystemManagement.EventLog" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <script type="text/javascript">
        $(document).ready(function () {
            var type = "<%=Type %>";
            if (type != null && type != "") {
                $("#select_timelog").attr("value", "<%=Type %>");
                selecttimelog(type);
            }
            else {
                $("#select_timelog").attr("value", 1);
                selecttimelog(1);
            }
        });
        function selecttimelog(timetype) {
            if (timetype == "1") {
                $("#endDatelog").css("display", "none");
            }
            else {
                $("#endDatelog").css("display", "");
            }
        }
    </script>
</head>
<body>
    <form id="pagerForm" method="post" action="SystemManagement/EventLog.aspx">
    <input type="hidden" name="numPerPage" value="<% =NumPerPage %>" />
    <input type="hidden" name="pageNum" value="1" />
    <input type="hidden" name="txtStarDateLog" value="<%=Startdate %>" />
    <input type="hidden" name="txtEndDateLog" value="<%=Enddate %>" />
    <input type="hidden" name="select_timelog" value="<%=Type %>" />
    </form>
    <div class="pageHeader">
        <form onsubmit="return navTabSearch(this);" action="" method="post">
        <div class="searchBar" style="margin-top: 13px; margin-bottom: 13px">
            <table class="searchContent">
                <tr>
                    <td>
                        查询范围：<select name="select_timelog" id="select_timelog" onchange="selecttimelog(this.value)"
                            style="width: 80px">
                            <option value="1">按日查询</option>
                            <option value="2">按区间查询</option>
                        </select>
                    </td>
                    <td>
                        <label>
                            开始日期：</label>
                        <input type="text" id="txtStarDateLog" name="txtStarDateLog" class="date" datefmt="yyyy-MM-dd"
                            value="<%=Startdate %>" style="width: 70px" />
                    </td>
                    <td id="endDatelog" style="display: none;">
                        <label>
                            结束日期：</label>
                        <input type="text" id="txtEndDateLog" name="txtEndDateLog" class="date" datefmt="yyyy-MM-dd"
                            value="<%=Enddate %>" style="width: 70px" />
                    </td>
                    <td>
                        <div class="buttonActive">
                            <div class="buttonContent">
                                <button type="submit" style="width: 50px; height: 30px">
                                    检索</button></div>
                        </div>
                    </td>
                </tr>
            </table>
        </div>
        </form>
    </div>
    <div class="pageContent">
        <div id="w_list_printClassManagement">
            <table class="table" width="100%" layouth="110">
                <thead>
                    <tr>
                        <th style="text-align: center;">
                            序列编号
                        </th>
                        <th style="text-align: center;">
                            操作人
                        </th>
                        <th style="text-align: center;">
                            内容
                        </th>
                        <th style="text-align: center;">
                            操作日期
                        </th>
                    </tr>
                </thead>
                <tbody>
                    <asp:Repeater ID="RepeaterDept" runat="server">
                        <ItemTemplate>
                            <tr>
                                <td style="text-align: center;">
                                    <%#Eval("RID")%>
                                </td>
                                <td style="text-align: center;">
                                    <%#DataBinder.Eval(Container.DataItem, "masterid")%>
                                </td>
                                <td style="text-align: center;">
                                    <%#DataBinder.Eval(Container.DataItem, "message")%>
                                </td>
                                <td style="text-align: center;">
                                    <%#DataBinder.Eval(Container.DataItem, "yyyymmddhhmmss")%>
                                </td>
                            </tr>
                        </ItemTemplate>
                    </asp:Repeater>
                </tbody>
            </table>
        </div>
        <div class="panelBar">
            <div class="pages">
                <span>显示</span>
                <select class="combox" name="numPerPage" onchange="navTabPageBreak({numPerPage:this.value})">
                    <option value="<%=NumPerPage%>">选择</option>
                    <option value="20">20</option>
                    <option value="50">50</option>
                    <option value="100">100</option>
                    <option value="200">200</option>
                </select>
                <span>条，共<%=TotalCount%>条</span>
            </div>
            <div class="pagination" targettype="navTab" totalcount="<%=TotalCount%>" numperpage="<%=NumPerPage%>"
                pagenumshown="<%=PageNumShown%>" currentpage="<%=PageNum%>">
            </div>
        </div>
    </div>
</body>
</html>
